const order = [
  {
    path: 'order',
    component: () => import(/* webpackChunkName: "platform" */ '@/layout/platform'),
    name: 'order',
    redirect: '/order',
    alwaysShow: true,
    meta: {
      title: 'order',
      code: 'Order',
      icon: 'el-icon-notebook-1',
      // allIdentity: true
      deleteCode: true
    },
    children: [
      {
        path: 'orderSearch',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/order/main'),
        meta: {
          title: 'orderSearch',
          code: 'OrderSearch',
          breadcrumb: false,
          icon: 'el-icon-s-order',
          allIdentity: true
        },
        children: [
          {
            path: '',
            name: 'OrderSearch',
            component: () => import(/* webpackChunkName: "platform" */ '@/views/order/index'),
            meta: {
              title: 'orderSearch',
              code: 'OrderSearch',
              breadcrumb: false,
              icon: 'el-icon-s-order'
            }
          },
          {
            path: 'detail',
            name: 'OrderDetail',
            hidden: true,
            component: () => import(/* webpackChunkName: "platform" */ '@/views/order/orderDetail'),
            meta: {
              title: 'orderDetail',
              code: 'OrderDetail',
              icon: 'el-icon-s-order',
              activeMenu: '/order/orderSearch'
            }
          }
        ]
      },
      {
        path: 'InsuranceOrder',
        name: 'InsuranceOrder',
        component: () => import(/* webpackChunkName: "platform" */ '@/views/insurance/main'),
        meta: {
          title: 'insuranceSearch',
          code: 'InsuranceSearch',
          icon: 'el-icon-s-order',
          // deleteThis: true,
          allIdentity: true,
          parentRouteName: 'InsuranceOrder',
        },
        children: [
          {
            path: '',
            name: 'InsuranceOrder',
            hidden: true,
            component: () => import(/* webpackChunkName: "platform" */ '@/views/insurance/index'),
            meta: {
              title: 'insuranceSearch',
              parentRouteName: 'InsuranceOrder',
              code: 'InsuranceSearch',
              activeMenu: '/order/InsuranceOrder',
              breadcrumb: false,
              deleteItem: true,
              deleteCode: true,
            }
          },
          {
            path: 'InsuranceSearchdetail',
            name: 'InsuranceSearchdetail',
            hidden: true,
            component: () => import(/* webpackChunkName: "platform" */ '@/views/insurance/detail'),
            meta: {
              activeMenu: '/order/InsuranceOrder',
              parentRouteName: 'InsuranceOrder',
              title: 'insuranceSearchdetail',
              code: 'InsuranceSearch',
              deleteItem: true,
              deleteCode: true,
            }
          }
        ]
      }
    ]
  }
];

export default [
  ...order
];
